using System;

namespace Mbs.ComponentModel.Container.Loader
{
    [Serializable]
    public class LoaderManager : ListnerManager<ILoader>, ILoaderManager
    {
        private IKernel Kernel;
        public void Init(IKernel kernel)
        {
            Kernel = kernel;
        }
        protected override void OnAfterRegister(ILoader listner)
        {
            listner.Init(Kernel);
            listner.Load();
        }
    }
}
